<template>
  <div class="item">
    <div class="itemTop">
      <img class="img" :src="itemInfo.icon" alt="" />
      <div class="contentLayout">
        <div class="title">{{itemInfo.title}}</div>
        <div class="content">{{itemInfo.title}}</div>
      </div>
    </div>
    <div class="itemBottom">
      <div class="info">{{itemInfo.description}}</div>
      <div class="info2">{{itemInfo.url}}</div>
    </div>
  </div>
</template>

<script>
// import RegisterItem from "../components/login/RegisterItem";
// import ForgetItem from "../components/login/ForgetItem";

export default {
  name: "ToolItem",
  components: {
    // Header,
    // RegisterItem,
    // ForgetItem,
  },

  props: {
    itemInfo: {
      type: Object,
      default() {
        return {};
      },
    },
  },
  data() {
    return {
      // tabPosition:0,
    };
  },
};
</script>

<style lang="scss" scoped>
.item {
  margin-left: 8px;
  margin-right: 8px;
  border: 1px gray solid;
  border-radius: 12px;
  background: white;
  height: 120px;
  transition: all 0.4s;
  min-width: 280px;
  margin-top: 8px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  padding: 12px;

  .itemTop {
    display: flex;
    flex-direction: row;
    align-items: center;
    .img {
      width: 50px;
      height: 50px;
      object-fit: cover;
    }
    .contentLayout {
      display: flex;
      flex: 1;
      flex-direction: column;
      align-items: flex-start;
      padding-left: 12px;
      .title {
        color: black;
        font-weight: 800;
        font-size: 15px;
      }
      .content {
        color: gray;
        font-size: 12px;
      }
    }
  }
  .itemBottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 12px;
    .info {
      font-size: 12px;
      color: grey;
    }
    .info2 {
      font-size: 12px;
      color: lightgrey;
      margin-top: 2px;
    }
  }
}
.item:hover {
  transform: scale(1.1);
}
</style>
